package com.buba.service;

import entity.sparemanage.Outwarehousing;
import com.baomidou.mybatisplus.extension.service.IService;
import entity.sparemanage.dto.insertOutWareDto;
import entity.sparemanage.dto.warehouseDto;
import utils.PageResult;

/**
 * <p>
 * 出库记录表 服务类
 * </p>
 *
 * @author beisheng
 * @since 2023-05-18
 */
public interface OutwarehousingService extends IService<Outwarehousing> {

    /* *
     * @Author: beisheng
     * @Descriprion: 新增出库记录及出库备件明细
     * @Date: 2023/5/31 14:02
     * @Return: common.R
     * @Param: [insertOutWareDto]
     */

    void insertOutWareDto(insertOutWareDto insertOutWareDto);

    /* *
     * @Author: beisheng
     * @Descriprion: 全查模糊分页查出库信息
     * @Date: 2023/5/31 15:31
     * @Return: common.R
     * @Param: [warehouseDto]
     */

    PageResult selAllOutWareHouse(warehouseDto warehouseDto);

    /* *
     * @Author: beisheng
     * @Descriprion: 根据ID查询出库记录及出库明细
     * @Date: 2023/5/31 19:24
     * @Return: common.R
     * @Param: [id]
     */

    insertOutWareDto selOneToWare(Integer id);

    /* *
     * @Author: beisheng
     * @Descriprion: 修改出库记录及出库备件明细
     * @Date: 2023/5/31 19:43
     * @Return: common.R
     * @Param: [warehouseDto]
     */

    void updateOutWare(insertOutWareDto warehouseDto);
}
